﻿<UserControl x:Class="SilverlightPlayer.BufferIndicator"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="61" Height="70.667">
	<UserControl.Resources>
		<Storyboard x:Name="Rotating" RepeatBehavior="Forever">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="progress" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="900"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="945"/>
				<SplineDoubleKeyFrame KeyTime="00:00:01" Value="990"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
    <Canvas Height="Auto" x:Name="LayoutRoot" Width="Auto">
    	<Canvas Height="59.868" Width="59.499" Canvas.Left="-0.586" x:Name="progress" RenderTransformOrigin="0.5,0.5" Canvas.Top="0.139">
    		<Canvas.RenderTransform>
    			<TransformGroup>
    				<ScaleTransform/>
    				<SkewTransform/>
    				<RotateTransform Angle="900"/>
    				<TranslateTransform/>
    			</TransformGroup>
    		</Canvas.RenderTransform>
    		<Path Height="57.41" Width="57.077" RenderTransformOrigin="0.477171497656623,0.174187184465963" Canvas.Left="-11.763" Canvas.Top="7.671" Fill="#FF959595" Stretch="Fill" Stroke="#FF000000" Data="M28.208973,37.909504 C29.589684,37.909504 30.708973,42.1628 30.708973,47.409504 C30.708973,52.656208 29.589684,56.909504 28.208973,56.909504 C26.82826,56.909504 25.708973,52.656208 25.708973,47.409504 C25.708973,42.1628 26.82826,37.909504 28.208973,37.909504 z M21.11488,34.522602 C21.666296,34.394169 22.086792,34.438721 22.33087,34.6828 C23.30718,35.659111 21.091103,39.458103 17.381123,43.168083 C13.671141,46.878063 9.8721504,49.094143 8.8958397,48.117832 C7.919529,47.141521 10.135607,43.342529 13.845588,39.632549 C16.628075,36.850063 19.460627,34.907898 21.11488,34.522602 z M35.971401,34.483006 C37.625652,34.868301 40.458206,36.810467 43.240692,39.592953 C46.950672,43.302933 49.166748,47.101925 48.190437,48.078236 C47.214127,49.054546 43.415138,46.838467 39.705158,43.128487 C35.995178,39.418507 33.779099,35.619514 34.755409,34.643204 C34.999489,34.399124 35.419983,34.354572 35.971401,34.483006 z M47.076538,27.223122 C52.323242,27.223122 56.576538,28.342409 56.576538,29.723122 C56.576538,31.103834 52.323242,32.223122 47.076538,32.223122 C41.82983,32.223122 37.576538,31.103834 37.576538,29.723122 C37.576538,28.342409 41.82983,27.223122 47.076538,27.223122 z M9.859024,26.762064 C15.098721,26.490948 19.404171,27.388956 19.475517,28.767824 C19.546864,30.14669 15.357089,31.484268 10.117393,31.755384 C4.877697,32.026501 0.57224655,31.12849 0.50089836,29.749624 C0.42955208,28.370756 4.6193275,27.03318 9.859024,26.762064 z M10.334549,8.6241007 C11.988802,9.0093975 14.821355,10.951562 17.603842,13.734048 C21.313822,17.444029 23.5299,21.243019 22.553589,22.21933 C21.577278,23.195641 17.778288,20.979563 14.068307,17.269583 C10.358326,13.559601 8.1422482,9.7606106 9.1185589,8.7842999 C9.3626366,8.5402222 9.7831316,8.4956694 10.334549,8.6241007 z M46.511295,8.1842957 C47.062714,8.0558643 47.483208,8.1004171 47.727287,8.3444948 C48.703598,9.3208055 46.487518,13.119796 42.777538,16.829777 C39.067558,20.539759 35.268566,22.755836 34.292255,21.779526 C33.315945,20.803215 35.532021,17.004225 39.242004,13.294243 C42.02449,10.511757 44.85704,8.5695925 46.511295,8.1842957 z M27.235296,0.5 C28.616009,0.49999982 29.735296,4.7532949 29.735296,10 C29.735296,15.246705 28.616009,19.5 27.235296,19.5 C25.854584,19.5 24.735296,15.246705 24.735296,10 C24.735296,4.7532949 25.854584,0.49999982 27.235296,0.5 z" x:Name="wheel">
    			<Path.RenderTransform>
    				<TransformGroup>
    					<ScaleTransform/>
    					<SkewTransform/>
    					<RotateTransform Angle="-45"/>
    					<TranslateTransform/>
    				</TransformGroup>
    			</Path.RenderTransform>
    		</Path>
    	</Canvas>
    	<TextBlock x:Name="txtPercent" Foreground="#FFFFFFFF" Text="0 %" TextWrapping="Wrap" Canvas.Top="57.331" VerticalAlignment="Center" Width="61" TextAlignment="Center" Height="12.667"/>
    </Canvas>
</UserControl>
